var app = getApp();
Page({

  // formid
  formSubmit: function (e) {
    var formId = e.detail.formId
    var that = this;
    wx.getStorage({
      key: 'user',
      success: function (res) {
        wx.request({
          url: app.url.requestUrl + '/user/collect_formid',
          method: 'POST',
          data: {
            openid: res.data.openid,
            token: res.data.token,
            formid: formId
          },
          success: function (res) {
            if (res.data.code == 1) {

            }
          }
        })
      }
    })
  },


})
